Integrand size = 28, antiderivative size = 177 \[ \int (a+a \sec (e+f x))^{3/2} (c-c \sec (e+f x))^3 \, dx=\frac {2 a^{3/2} c^3 \arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a+a \sec (e+f x)}}\right )}{f}-\frac {2 a^2 c^3 \tan (e+f x)}{f \sqrt {a+a \sec (e+f x)}}+\frac {2 a^3 c^3 \tan ^3(e+f x)}{3 f (a+a \sec (e+f x))^{3/2}}-\frac {2 a^4 c^3 \tan ^5(e+f x)}{5 f (a+a \sec (e+f x))^{5/2}}-\frac {2 a^5 c^3 \tan ^7(e+f x)}{7 f (a+a \sec (e+f x))^{7/2}} \]
2*a^(3/2)*c^3*arctan(a^(1/2)*tan(f*x+e)/(a+a*sec(f*x+e))^(1/2))/f-2*a^2*c^ 3*tan(f*x+e)/f/(a+a*sec(f*x+e))^(1/2)+2/3*a^3*c^3*tan(f*x+e)^3/f/(a+a*sec( f*x+e))^(3/2)-2/5*a^4*c^3*tan(f*x+e)^5/f/(a+a*sec(f*x+e))^(5/2)-2/7*a^5*c^ 3*tan(f*x+e)^7/f/(a+a*sec(f*x+e))^(7/2)
Time = 1.70 (sec) , antiderivative size = 124, normalized size of antiderivative = 0.70 \[ \int (a+a \sec (e+f x))^{3/2} (c-c \sec (e+f x))^3 \, dx=-\frac {2 a^2 \left (-105 c^{7/2} \text {arctanh}\left (\frac {\sqrt {c-c \sec (e+f x)}}{\sqrt {c}}\right )+c^3 \sqrt {c-c \sec (e+f x)} \left (146-32 \sec (e+f x)-24 \sec ^2(e+f x)+15 \sec ^3(e+f x)\right )\right ) \tan (e+f x)}{105 f \sqrt {a (1+\sec (e+f x))} \sqrt {c-c \sec (e+f x)}} \]
(-2*a^2*(-105*c^(7/2)*ArcTanh[Sqrt[c - c*Sec[e + f*x]]/Sqrt[c]] + c^3*Sqrt [c - c*Sec[e + f*x]]*(146 - 32*Sec[e + f*x] - 24*Sec[e + f*x]^2 + 15*Sec[e + f*x]^3))*Tan[e + f*x])/(105*f*Sqrt[a*(1 + Sec[e + f*x])]*Sqrt[c - c*Sec [e + f*x]])
Time = 0.41 (sec) , antiderivative size = 154, normalized size of antiderivative = 0.87, number of steps used = 8, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.250, Rules used = {3042, 4392, 3042, 4375, 363, 254, 2009}
Below are the steps used by Rubi to obtain the solution. The rule number used for the transformation is given above next to the arrow. The rules definitions used are listed below.
\(\displaystyle \int (a \sec (e+f x)+a)^{3/2} (c-c \sec (e+f x))^3 \, dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle \int \left (a \csc \left (e+f x+\frac {\pi }{2}\right )+a\right )^{3/2} \left (c-c \csc \left (e+f x+\frac {\pi }{2}\right )\right )^3dx\) |
\(\Big \downarrow \) 4392 |
\(\displaystyle -a^3 c^3 \int \frac {\tan ^6(e+f x)}{(\sec (e+f x) a+a)^{3/2}}dx\) |
\(\Big \downarrow \) 3042 |
\(\displaystyle -a^3 c^3 \int \frac {\cot \left (e+f x+\frac {\pi }{2}\right )^6}{\left (\csc \left (e+f x+\frac {\pi }{2}\right ) a+a\right )^{3/2}}dx\) |
\(\Big \downarrow \) 4375 |
\(\displaystyle \frac {2 a^5 c^3 \int \frac {\tan ^6(e+f x) \left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+2\right )}{(\sec (e+f x) a+a)^3 \left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+1\right )}d\left (-\frac {\tan (e+f x)}{\sqrt {\sec (e+f x) a+a}}\right )}{f}\) |
\(\Big \downarrow \) 363 |
\(\displaystyle \frac {2 a^5 c^3 \left (\int \frac {\tan ^6(e+f x)}{(\sec (e+f x) a+a)^3 \left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+1\right )}d\left (-\frac {\tan (e+f x)}{\sqrt {\sec (e+f x) a+a}}\right )-\frac {\tan ^7(e+f x)}{7 (a \sec (e+f x)+a)^{7/2}}\right )}{f}\) |
\(\Big \downarrow \) 254 |
\(\displaystyle \frac {2 a^5 c^3 \left (\int \left (\frac {\tan ^4(e+f x)}{a (\sec (e+f x) a+a)^2}-\frac {\tan ^2(e+f x)}{a^2 (\sec (e+f x) a+a)}-\frac {1}{a^3 \left (\frac {a \tan ^2(e+f x)}{\sec (e+f x) a+a}+1\right )}+\frac {1}{a^3}\right )d\left (-\frac {\tan (e+f x)}{\sqrt {\sec (e+f x) a+a}}\right )-\frac {\tan ^7(e+f x)}{7 (a \sec (e+f x)+a)^{7/2}}\right )}{f}\) |
\(\Big \downarrow \) 2009 |
\(\displaystyle \frac {2 a^5 c^3 \left (\frac {\arctan \left (\frac {\sqrt {a} \tan (e+f x)}{\sqrt {a \sec (e+f x)+a}}\right )}{a^{7/2}}-\frac {\tan (e+f x)}{a^3 \sqrt {a \sec (e+f x)+a}}+\frac {\tan ^3(e+f x)}{3 a^2 (a \sec (e+f x)+a)^{3/2}}-\frac {\tan ^7(e+f x)}{7 (a \sec (e+f x)+a)^{7/2}}-\frac {\tan ^5(e+f x)}{5 a (a \sec (e+f x)+a)^{5/2}}\right )}{f}\) |
(2*a^5*c^3*(ArcTan[(Sqrt[a]*Tan[e + f*x])/Sqrt[a + a*Sec[e + f*x]]]/a^(7/2 ) - Tan[e + f*x]/(a^3*Sqrt[a + a*Sec[e + f*x]]) + Tan[e + f*x]^3/(3*a^2*(a + a*Sec[e + f*x])^(3/2)) - Tan[e + f*x]^5/(5*a*(a + a*Sec[e + f*x])^(5/2) ) - Tan[e + f*x]^7/(7*(a + a*Sec[e + f*x])^(7/2))))/f
3.1.50.3.1 Defintions of rubi rules used
Int[(x_)^(m_)/((a_) + (b_.)*(x_)^2), x_Symbol] :> Int[PolynomialDivide[x^m, a + b*x^2, x], x] /; FreeQ[{a, b}, x] && IGtQ[m, 3]
Int[((e_.)*(x_))^(m_.)*((a_) + (b_.)*(x_)^2)^(p_.)*((c_) + (d_.)*(x_)^2), x _Symbol] :> Simp[d*(e*x)^(m + 1)*((a + b*x^2)^(p + 1)/(b*e*(m + 2*p + 3))), x] - Simp[(a*d*(m + 1) - b*c*(m + 2*p + 3))/(b*(m + 2*p + 3)) Int[(e*x)^ m*(a + b*x^2)^p, x], x] /; FreeQ[{a, b, c, d, e, m, p}, x] && NeQ[b*c - a*d , 0] && NeQ[m + 2*p + 3, 0]
Int[cot[(c_.) + (d_.)*(x_)]^(m_.)*(csc[(c_.) + (d_.)*(x_)]*(b_.) + (a_))^(n _.), x_Symbol] :> Simp[-2*(a^(m/2 + n + 1/2)/d) Subst[Int[x^m*((2 + a*x^2 )^(m/2 + n - 1/2)/(1 + a*x^2)), x], x, Cot[c + d*x]/Sqrt[a + b*Csc[c + d*x] ]], x] /; FreeQ[{a, b, c, d}, x] && EqQ[a^2 - b^2, 0] && IntegerQ[m/2] && I ntegerQ[n - 1/2]
Int[(csc[(e_.) + (f_.)*(x_)]*(b_.) + (a_))^(m_.)*(csc[(e_.) + (f_.)*(x_)]*( d_.) + (c_))^(n_.), x_Symbol] :> Simp[((-a)*c)^m Int[Cot[e + f*x]^(2*m)*( c + d*Csc[e + f*x])^(n - m), x], x] /; FreeQ[{a, b, c, d, e, f, n}, x] && E qQ[b*c + a*d, 0] && EqQ[a^2 - b^2, 0] && IntegerQ[m] && RationalQ[n] && !( IntegerQ[n] && GtQ[m - n, 0])
Time = 8.28 (sec) , antiderivative size = 234, normalized size of antiderivative = 1.32
method | result | size |
default | \(\frac {a \,c^{3} \left (105 \sqrt {2}\, \operatorname {arctanh}\left (\frac {\sqrt {2}\, \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )\right )}{\sqrt {\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}}\right ) \left (\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1\right )^{\frac {7}{2}}-278 \left (1-\cos \left (f x +e \right )\right )^{7} \csc \left (f x +e \right )^{7}+1078 \left (1-\cos \left (f x +e \right )\right )^{5} \csc \left (f x +e \right )^{5}-770 \left (1-\cos \left (f x +e \right )\right )^{3} \csc \left (f x +e \right )^{3}+210 \csc \left (f x +e \right )-210 \cot \left (f x +e \right )\right ) \sqrt {-\frac {2 a}{\left (1-\cos \left (f x +e \right )\right )^{2} \csc \left (f x +e \right )^{2}-1}}}{105 f \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )+1\right )^{3} \left (-\cot \left (f x +e \right )+\csc \left (f x +e \right )-1\right )^{3}}\) | \(234\) |
parts | \(\frac {2 c^{3} a \sqrt {a \left (\sec \left (f x +e \right )+1\right )}\, \left (\operatorname {arctanh}\left (\frac {\sin \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}}\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}\, \cos \left (f x +e \right )+\operatorname {arctanh}\left (\frac {\sin \left (f x +e \right )}{\left (\cos \left (f x +e \right )+1\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}}\right ) \sqrt {-\frac {\cos \left (f x +e \right )}{\cos \left (f x +e \right )+1}}+\sin \left (f x +e \right )\right )}{f \left (\cos \left (f x +e \right )+1\right )}-\frac {2 c^{3} a \sqrt {a \left (\sec \left (f x +e \right )+1\right )}\, \left (5 \sin \left (f x +e \right )+\tan \left (f x +e \right )\right )}{f \left (\cos \left (f x +e \right )+1\right )}+\frac {6 c^{3} a \sqrt {a \left (\sec \left (f x +e \right )+1\right )}\, \left (6 \sin \left (f x +e \right )+3 \tan \left (f x +e \right )+\sec \left (f x +e \right ) \tan \left (f x +e \right )\right )}{5 f \left (\cos \left (f x +e \right )+1\right )}-\frac {2 c^{3} a \left (104 \cos \left (f x +e \right )^{3}+52 \cos \left (f x +e \right )^{2}+39 \cos \left (f x +e \right )+15\right ) \sqrt {a \left (\sec \left (f x +e \right )+1\right )}\, \tan \left (f x +e \right ) \sec \left (f x +e \right )^{2}}{105 f \left (\cos \left (f x +e \right )+1\right )}\) | \(346\) |
1/105*a*c^3/f*(105*2^(1/2)*arctanh(2^(1/2)/((1-cos(f*x+e))^2*csc(f*x+e)^2- 1)^(1/2)*(-cot(f*x+e)+csc(f*x+e)))*((1-cos(f*x+e))^2*csc(f*x+e)^2-1)^(7/2) -278*(1-cos(f*x+e))^7*csc(f*x+e)^7+1078*(1-cos(f*x+e))^5*csc(f*x+e)^5-770* (1-cos(f*x+e))^3*csc(f*x+e)^3+210*csc(f*x+e)-210*cot(f*x+e))*(-2*a/((1-cos (f*x+e))^2*csc(f*x+e)^2-1))^(1/2)/(-cot(f*x+e)+csc(f*x+e)+1)^3/(-cot(f*x+e )+csc(f*x+e)-1)^3
Time = 0.26 (sec) , antiderivative size = 385, normalized size of antiderivative = 2.18 \[ \int (a+a \sec (e+f x))^{3/2} (c-c \sec (e+f x))^3 \, dx=\left [\frac {105 \, {\left (a c^{3} \cos \left (f x + e\right )^{4} + a c^{3} \cos \left (f x + e\right )^{3}\right )} \sqrt {-a} \log \left (\frac {2 \, a \cos \left (f x + e\right )^{2} - 2 \, \sqrt {-a} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right ) \sin \left (f x + e\right ) + a \cos \left (f x + e\right ) - a}{\cos \left (f x + e\right ) + 1}\right ) - 2 \, {\left (146 \, a c^{3} \cos \left (f x + e\right )^{3} - 32 \, a c^{3} \cos \left (f x + e\right )^{2} - 24 \, a c^{3} \cos \left (f x + e\right ) + 15 \, a c^{3}\right )} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right )}{105 \, {\left (f \cos \left (f x + e\right )^{4} + f \cos \left (f x + e\right )^{3}\right )}}, -\frac {2 \, {\left (105 \, {\left (a c^{3} \cos \left (f x + e\right )^{4} + a c^{3} \cos \left (f x + e\right )^{3}\right )} \sqrt {a} \arctan \left (\frac {\sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \cos \left (f x + e\right )}{\sqrt {a} \sin \left (f x + e\right )}\right ) + {\left (146 \, a c^{3} \cos \left (f x + e\right )^{3} - 32 \, a c^{3} \cos \left (f x + e\right )^{2} - 24 \, a c^{3} \cos \left (f x + e\right ) + 15 \, a c^{3}\right )} \sqrt {\frac {a \cos \left (f x + e\right ) + a}{\cos \left (f x + e\right )}} \sin \left (f x + e\right )\right )}}{105 \, {\left (f \cos \left (f x + e\right )^{4} + f \cos \left (f x + e\right )^{3}\right )}}\right ] \]
[1/105*(105*(a*c^3*cos(f*x + e)^4 + a*c^3*cos(f*x + e)^3)*sqrt(-a)*log((2* a*cos(f*x + e)^2 - 2*sqrt(-a)*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*cos( f*x + e)*sin(f*x + e) + a*cos(f*x + e) - a)/(cos(f*x + e) + 1)) - 2*(146*a *c^3*cos(f*x + e)^3 - 32*a*c^3*cos(f*x + e)^2 - 24*a*c^3*cos(f*x + e) + 15 *a*c^3)*sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*sin(f*x + e))/(f*cos(f*x + e)^4 + f*cos(f*x + e)^3), -2/105*(105*(a*c^3*cos(f*x + e)^4 + a*c^3*cos(f *x + e)^3)*sqrt(a)*arctan(sqrt((a*cos(f*x + e) + a)/cos(f*x + e))*cos(f*x + e)/(sqrt(a)*sin(f*x + e))) + (146*a*c^3*cos(f*x + e)^3 - 32*a*c^3*cos(f* x + e)^2 - 24*a*c^3*cos(f*x + e) + 15*a*c^3)*sqrt((a*cos(f*x + e) + a)/cos (f*x + e))*sin(f*x + e))/(f*cos(f*x + e)^4 + f*cos(f*x + e)^3)]
\[ \int (a+a \sec (e+f x))^{3/2} (c-c \sec (e+f x))^3 \, dx=- c^{3} \left (\int \left (- a \sqrt {a \sec {\left (e + f x \right )} + a}\right )\, dx + \int 2 a \sqrt {a \sec {\left (e + f x \right )} + a} \sec {\left (e + f x \right )}\, dx + \int \left (- 2 a \sqrt {a \sec {\left (e + f x \right )} + a} \sec ^{3}{\left (e + f x \right )}\right )\, dx + \int a \sqrt {a \sec {\left (e + f x \right )} + a} \sec ^{4}{\left (e + f x \right )}\, dx\right ) \]
-c**3*(Integral(-a*sqrt(a*sec(e + f*x) + a), x) + Integral(2*a*sqrt(a*sec( e + f*x) + a)*sec(e + f*x), x) + Integral(-2*a*sqrt(a*sec(e + f*x) + a)*se c(e + f*x)**3, x) + Integral(a*sqrt(a*sec(e + f*x) + a)*sec(e + f*x)**4, x ))
\[ \int (a+a \sec (e+f x))^{3/2} (c-c \sec (e+f x))^3 \, dx=\int { -{\left (a \sec \left (f x + e\right ) + a\right )}^{\frac {3}{2}} {\left (c \sec \left (f x + e\right ) - c\right )}^{3} \,d x } \]
-1/210*(105*((a*c^3*cos(2*f*x + 2*e)^2 + a*c^3*sin(2*f*x + 2*e)^2 + 2*a*c^ 3*cos(2*f*x + 2*e) + a*c^3)*arctan2((cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e) ^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2 *f*x + 2*e) + 1)), (cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)) + 1) - (a*c^3*cos(2*f*x + 2*e)^2 + a*c^3*sin(2*f*x + 2*e)^2 + 2*a*c^3*cos (2*f*x + 2*e) + a*c^3)*arctan2((cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*sin(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)), (cos(2*f*x + 2*e)^2 + sin(2*f*x + 2*e)^2 + 2*cos(2*f*x + 2*e ) + 1)^(1/4)*cos(1/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e) + 1)) - 1) - 2*(a*c^3*f*cos(2*f*x + 2*e)^2 + a*c^3*f*sin(2*f*x + 2*e)^2 + 2*a*c^3*f* cos(2*f*x + 2*e) + a*c^3*f)*integrate((cos(2*f*x + 2*e)^2 + sin(2*f*x + 2* e)^2 + 2*cos(2*f*x + 2*e) + 1)^(1/4)*(((cos(8*f*x + 8*e)*cos(2*f*x + 2*e) + 3*cos(6*f*x + 6*e)*cos(2*f*x + 2*e) + 3*cos(4*f*x + 4*e)*cos(2*f*x + 2*e ) + cos(2*f*x + 2*e)^2 + sin(8*f*x + 8*e)*sin(2*f*x + 2*e) + 3*sin(6*f*x + 6*e)*sin(2*f*x + 2*e) + 3*sin(4*f*x + 4*e)*sin(2*f*x + 2*e) + sin(2*f*x + 2*e)^2)*cos(9/2*arctan2(sin(2*f*x + 2*e), cos(2*f*x + 2*e))) + (cos(2*f*x + 2*e)*sin(8*f*x + 8*e) + 3*cos(2*f*x + 2*e)*sin(6*f*x + 6*e) + 3*cos(2*f *x + 2*e)*sin(4*f*x + 4*e) - cos(8*f*x + 8*e)*sin(2*f*x + 2*e) - 3*cos(6*f *x + 6*e)*sin(2*f*x + 2*e) - 3*cos(4*f*x + 4*e)*sin(2*f*x + 2*e))*sin(9...
\[ \int (a+a \sec (e+f x))^{3/2} (c-c \sec (e+f x))^3 \, dx=\int { -{\left (a \sec \left (f x + e\right ) + a\right )}^{\frac {3}{2}} {\left (c \sec \left (f x + e\right ) - c\right )}^{3} \,d x } \]
Timed out. \[ \int (a+a \sec (e+f x))^{3/2} (c-c \sec (e+f x))^3 \, dx=\int {\left (a+\frac {a}{\cos \left (e+f\,x\right )}\right )}^{3/2}\,{\left (c-\frac {c}{\cos \left (e+f\,x\right )}\right )}^3 \,d x \]